package internalMail;

import javax.swing.JFrame;
import javax.swing.JTable;

import basic.ClientConsole;

import com.sun.rowset.CachedRowSetImpl;

import flexibility.userData;
import guiCode.secretaryScreenCode;
import secretaryGUI.createSecretaryWindow;

public class readMail {

	private userData getMsg = new userData();
	private sendRecieve SMU = new sendRecieve();
	
	public void getMyMails(createMailBox cmb, ClientConsole myConnection, CachedRowSetImpl crs, int userID) {
		// this will show you your messages.

			
			//this will show the messages in the table
			getMsg.deleteAll();
			getMsg.addData(327);
			getMsg.addData(1);
			getMsg.addData(userID);
			myConnection.acceptMsg(getMsg);
			crs = myConnection.getResults();
			
			SMU.getMail(1, cmb, myConnection, crs);
		

		
		
	}
}
